package com.sky.sd.system.feign;

import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.netflix.discovery.converters.Auto;
import com.sky.sd.common.web.response.Result;
import com.sky.sd.system.bean.dto.LoginUser;
import com.sky.sd.system.bean.po.User;
import com.sky.sd.system.service.IUserService;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;

/**
 * <br/>功能:
 * <br/>版本: 1.0
 * <br/>开发人员: 弓振
 * <br/>创建日期: 2020/6/30 16:18
 * <br/>修改日期: 2020/6/30 16:18
 * <br/>修改列表:
 */
@RestController
public class SysClient implements ISysClient {

    @Autowired
    private IUserService userService;

    @Override
    public Result<LoginUser> getLoginUser(String username) {
        LoginUser loginUser = userService.getLoginUserByUsername(username);
        return Result.success(loginUser);
    }
}
